Skip to main content

Microsoft Teams Scope

AutomatR.MicrosoftTeams.Activities.MicrosoftTeamsScope

The "Microsoft Teams Scope" activity in AutomatR establishes a connection to Microsoft Teams and provides a scope for all subsequent activities within the Teams package. This activity manages the authentication details and ensures that subsequent Microsoft Teams activities execute within the specified scope.

Properties

NameDescription
Input
Refresh TokenSpecifies the API key (Refresh Token) for the Teams user's account. The Refresh Token is used to authenticate the connection to Microsoft Teams. Use the provided editor to securely enter the Refresh Token.
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelayDelay (in seconds) between the time this activity is completed and the time the next activity begins any operations. Adding a delay between activities ensures that one activity has enough time to complete before the next activity begins. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1.
Output
MicrosoftTeamsScopeAppOutputs the Microsoft Teams scope application details, providing a structured way to manage the connection to Microsoft Teams. This output is used internally by the activity to pass authentication details to subsequent Microsoft Teams activities.

How to use:

  1. Drag and drop the "Microsoft Teams Scope" activity onto the workflow.
  2. Configure the properties by entering the Refresh Token obtained from Microsoft Teams.
  3. Optionally, configure the delay.
  4. Use the output MicrosoftTeamsScopeApp to pass authentication details to subsequent Microsoft Teams activities.

Example: Consider an example where the "Microsoft Teams Scope" activity is used to establish a connection to Microsoft Teams:

Microsoft Teams Scope:
Delay: 2
Refresh Token: teamsRefreshToken
MicrosoftTeamsScopeApp: teamsScopeApp

In this example, the activity waits for 2 seconds before executing, uses the specified Refresh Token ("teamsRefreshToken") for authentication, and outputs the Microsoft Teams scope application details to the variable "teamsScopeApp." This variable is then used to pass authentication details to subsequent Microsoft Teams activities within the workflow.